[IT] Admin feature

Thursday, 22 April 2021 17:21:18
Total Iterations

1

Total Assertions

7

Total Failed Tests

3

Total Skipped Tests

0


File Information
Collection: [IT] Admin feature
Environment: Nightlies
Collection Description
``` Feature: Basic admin's features Scenario: Create a user by email/password with valid admin token When I create a user with a valid admin token Then I should get status 200 Scenario: Create a user by email/password with invalid admin token When I create a user with an invalid admin token Then I should get status 403 ```
Timings and Data
Total run duration: 17.8s
Total data received: 620B
Average response time: 3.5s
Summary Item Total Failed
Requests 5 0
Prerequest Scripts 7 0
Test Scripts 10 0
Assertions 7 3
Skipped Tests 0 -



Showing 3 Failures

Failed Test: Connect endpoint should return 200 when login with valid admin

Assertion Error Message
expected response to have status code 200 but got 403
Failed Test: Admin user can create a new user

Assertion Error Message
expected response to have status code 200 but got 403
Failed Test: Connect endpoint should return 200 when login with created user

Assertion Error Message
expected response to have status code 200 but got 403


There are no skipped tests



1 Iteration available to view
Request Information
Request Method: POST
Request URL: http://varnish/connect/oauth/token
Response Information
Response Code: 403 - Forbidden
Mean time per request: 1066ms
Mean size per request: 85B

Test Pass Percentage
50 %
Request Headers
Header NameHeader Value
Content-Type application/x-www-form-urlencoded
Pragma no-cache
Accept application/json, text/plain, */*
Host varnish
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 68b0d0f4-16cb-4cab-acf2-b09c1763c2ff
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 211
Request Body
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"admin@whoozer.fr","password":"wh00zerp0w3r","scope":"mobile_app admin_scopes"}
Response Headers
Header NameHeader Value
Date Thu, 22 Apr 2021 17:21:01 GMT
Content-Type application/json
Access-Control-Allow-Origin *
Access-Control-Allow-Methods GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Max-Age 0
Access-Control-Allow-Headers Authorization, Content-Type, X-Happn-CID, X-Happn-DID, X-HAPPN-VERSION, X-HAPPN-CARRIER-COUNTRY
X-Backend legacy
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 85
Connection keep-alive
Response Body
{"success":false,"status":403,"error":"invalid_client","data":null,"error_code":1002}
Test Information
NamePassedFailedSkipped
Connect endpoint should return 200 when login with valid admin 0 1 0
Connect endpoint should return access_token and refresh_token 1 0 0
Total 1 1 0
Test Failure
Test NameAssertion Error
Connect endpoint should return 200 when login with valid admin
expected response to have status code 200 but got 403
Request Information
Request Method: POST
Request URL: http://varnish/api/users/
Response Information
Response Code: 403 - Forbidden
Mean time per request: 27ms
Mean size per request: 84B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/json
Accept application/json, text/plain, */*
Authorization OAuth="null"
Accept-Encoding br, gzip, deflate
Host api-preprod.happn.com
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 895293f5-920f-406e-b5d1-c146bac2c9f1
Connection keep-alive
Content-Length 179
Request Body
{
            "type": "CLIENT",
            "gender": "female",
            "login": "main.user_1619112061488@example.com",
            "first_name": "fake",
            "last_name": "user",
            "password": "00000000"
        }
Response Headers
Header NameHeader Value
Date Thu, 22 Apr 2021 17:21:01 GMT
Content-Type application/json
Access-Control-Allow-Origin *
Access-Control-Allow-Methods GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Max-Age 0
Access-Control-Allow-Headers Authorization, Content-Type, X-Happn-CID, X-Happn-DID, X-HAPPN-VERSION, X-HAPPN-CARRIER-COUNTRY
X-Backend legacy
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 84
Connection keep-alive
Response Body
{"success":false,"status":403,"error":"invalid_token","data":null,"error_code":1010}
Test Information
NamePassedFailedSkipped
Admin user can create a new user 0 1 0
Total 0 1 0
Test Failure
Test NameAssertion Error
Admin user can create a new user
expected response to have status code 200 but got 403
Request Information
Request Method: POST
Request URL: http://varnish/connect/oauth/token
Response Information
Response Code: 403 - Forbidden
Mean time per request: 15.4s
Mean size per request: 85B

Test Pass Percentage
50 %
Request Headers
Header NameHeader Value
Content-Type application/x-www-form-urlencoded
Pragma no-cache
Accept application/json, text/plain, */*
Host varnish
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 6c8c1e75-6216-443d-9b7c-e35d88ad9e28
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 211
Request Body
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"main.user_1619112061488@example.com","password":"00000000","scope":"mobile_app"}
Response Headers
Header NameHeader Value
Date Thu, 22 Apr 2021 17:21:16 GMT
Content-Type application/json
Access-Control-Allow-Origin *
Access-Control-Allow-Methods GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Max-Age 0
Access-Control-Allow-Headers Authorization, Content-Type, X-Happn-CID, X-Happn-DID, X-HAPPN-VERSION, X-HAPPN-CARRIER-COUNTRY
X-Backend legacy
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 85
Connection keep-alive
Response Body
{"success":false,"status":403,"error":"invalid_client","data":null,"error_code":1002}
Test Information
NamePassedFailedSkipped
Connect endpoint should return 200 when login with created user 0 1 0
Connect endpoint should return access_token and refresh_token for a user 1 0 0
Total 1 1 0
Test Failure
Test NameAssertion Error
Connect endpoint should return 200 when login with created user
expected response to have status code 200 but got 403
Request Information
Request Method: DELETE
Request URL: http://varnish/api/users/null?to_delete=true
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 1013ms
Mean size per request: 282B

Test Pass Percentage
No Tests for this request
Request Headers
Header NameHeader Value
Host varnish
CF-IPCountry FR
Cookie
Authorization OAuth="null"
User-Agent PostmanRuntime/7.26.8
Accept */*
Cache-Control no-cache
Postman-Token e29436d6-50cd-45ab-b128-016b6957c0d2
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Date Thu, 22 Apr 2021 17:21:18 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 282
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 33491</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
No Tests for this request
Request Information
Request Method: POST
Request URL: http://varnish/api/users/
Response Information
Response Code: 403 - Forbidden
Mean time per request: 32ms
Mean size per request: 84B

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
Content-Type application/json
Accept application/json, text/plain, */*
Authorization OAuth="invalidToken"
Accept-Encoding br, gzip, deflate
Host api-preprod.happn.com
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 60539f49-f60f-4b61-9f37-1f25d2e8a413
Connection keep-alive
Content-Length 179
Request Body
{
            "type": "CLIENT",
            "gender": "female",
            "login": "main.user_1619112078079@example.com",
            "first_name": "fake",
            "last_name": "user",
            "password": "00000000"
        }
Response Headers
Header NameHeader Value
Date Thu, 22 Apr 2021 17:21:18 GMT
Content-Type application/json
Access-Control-Allow-Origin *
Access-Control-Allow-Methods GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Max-Age 0
Access-Control-Allow-Headers Authorization, Content-Type, X-Happn-CID, X-Happn-DID, X-HAPPN-VERSION, X-HAPPN-CARRIER-COUNTRY
X-Backend legacy
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 84
Connection keep-alive
Response Body
{"success":false,"status":403,"error":"invalid_token","data":null,"error_code":1010}
Test Information
NamePassedFailedSkipped
User creation returns 403 when using invalid admin token 1 0 0
Error code should be invalid_token 1 0 0
Total 2 0 0
Test Failure
Test NameAssertion Error